package com.hopu.mybatis.entity;

import java.io.Serializable;

/**
 * 宠物实体类
 */
public class Pet implements Serializable {

    private Integer id;
    private String name;
    private Integer age;
    private String color;
    private String gender;
    private Integer price;
    private Integer typeId;
    private Integer userId;
    private String image;
    //主人属性
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Pet(Integer id, String name, Integer age, String color, String gender, Integer price, Integer typeId, Integer userId, String image) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.color = color;
        this.gender = gender;
        this.price = price;
        this.typeId = typeId;
        this.userId = userId;
        this.image = image;
    }

    public Pet() {
    }

    @Override
    public String toString() {
        return "Pet{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                ", gender='" + gender + '\'' +
                ", price=" + price +
                ", typeId=" + typeId +
                ", userId=" + userId +
                ", image='" + image + '\'' +
                '}';
    }
}
